import request from '@/utils/request'

// 查询毛丝列表
export function listMixedWire(query) {
  return request({
    url: '/mes/bm/mixedWire/list',
    method: 'get',
    params: query
  })
}

// 查询毛丝详细
export function getMixedWire(id) {
  return request({
    url: '/mes/bm/mixedWire/' + id,
    method: 'get'
  })
}

// 新增毛丝
export function addMixedWire(data) {
  return request({
    url: '/mes/bm/mixedWire',
    method: 'post',
    data: data
  })
}

// 修改毛丝
export function updateMixedWire(data) {
  return request({
    url: '/mes/bm/mixedWire',
    method: 'put',
    data: data
  })
}

// 删除毛丝
export function delMixedWire(id) {
  return request({
    url: '/mes/bm/mixedWire/' + id,
    method: 'delete'
  })
}
